﻿<br /><div class="code">
<span class="Modifier">public</span>&nbsp;ActionResult&nbsp;SelectedOptions()<br />
{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CountriesModel&nbsp;viewModel&nbsp;=&nbsp;<span class="Keyword">new</span>&nbsp;CountriesModel()<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AvailableCountries&nbsp;=&nbsp;<span class="Keyword">new</span>&nbsp;<span class="ReferenceType">string</span>[]&nbsp;{&nbsp;<span class="String">"France"</span>,&nbsp;<span class="String">"Germany"</span>,&nbsp;<span class="String">"Spain"</span>&nbsp;},<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AvailableCountries2&nbsp;=&nbsp;<span class="Keyword">new</span>&nbsp;List&lt;Country&gt;()<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;};<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;viewModel.AvailableCountries2.Add(<span class="Keyword">new</span>&nbsp;Country()&nbsp;{&nbsp;CountryName&nbsp;=&nbsp;<span class="String">"UK"</span>,&nbsp;CountryPopulation&nbsp;=&nbsp;65000000&nbsp;});<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;viewModel.AvailableCountries2.Add(<span class="Keyword">new</span>&nbsp;Country()&nbsp;{&nbsp;CountryName&nbsp;=&nbsp;<span class="String">"USA"</span>,&nbsp;CountryPopulation&nbsp;=&nbsp;320000000&nbsp;});<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;viewModel.AvailableCountries2.Add(<span class="Keyword">new</span>&nbsp;Country()&nbsp;{&nbsp;CountryName&nbsp;=&nbsp;<span class="String">"Sweden"</span>,&nbsp;CountryPopulation&nbsp;=&nbsp;29000000&nbsp;});<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="Statement">return</span>&nbsp;View(viewModel);<br />
}
</div>